<template>
	<view class="myorder">
		<view class="header spaceBetween">
			<view class="title">我的订单</view>
			<view class="all flex" @click="nav('all')">
				<view class="txt">全部</view>
				<image class="goicon" src="/static/images/navTo1.png" mode=""></image>
			</view>
		</view>
		<view class="list spaceAround">
			<view class="item" @click="nav(0)">
				<image class="icon" src="/static/images/my/pendingPayment.png" mode="heightFix"></image>
				<view class="text">待付款</view>
			</view>
			<view class="item" @click="nav(1)">
				<image class="icon" src="/static/images/my/toBeUsed.png" mode="heightFix"></image>
				<view class="text">待使用</view>
			</view>
			<view class="item" @click="nav(3)">
				<image class="icon" src="/static/images/my/used.png" mode="heightFix"></image>
				<view class="text">已使用</view>
			</view>
			<view class="item" @click="nav(2)">
				<image class="icon" src="/static/images/my/inAfter-salesService.png" mode="heightFix"></image>
				<view class="text">退款中</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { underDevelopment } from '@/utils/utils.js';
	export default {
		name: 'myorder',
		data() {
			return {};
		},
		methods: {
			init() {},
			nav(type) {
				uni.navigateTo({
					url:"/pages/my/order/order?type="+type
				})
			},
		},
	};
</script>

<style lang="scss" scoped>
	.myorder {
		width: 690rpx;
		// height: 236rpx;
		background: #ffffff;
		border-radius: 30rpx;
		margin: $submargin-width auto;
		overflow: hidden;
		.header {
			width: 650rpx;
			align-items: center;
			margin: $margin-width auto 0;
			align-items: center;
			.title {
				font-size: $uni-font-size-14;
				color: #000000;
			}
			.all {
				align-items: center;
				color: #999999;
				font-size: $uni-font-size-12;
				.txt {
				}
				.goicon {
					margin-left: 0rpx;
					height: 30rpx;
					width: 35rpx;
				}
			}
		}
		.list {
			overflow: hidden;
			.item {
				text-align: center;
				display: flex;
				align-items: center;
				flex-direction: column;
				.icon {
					height: 56rpx;
					margin: $margin-width auto;
				}
				.text {
					color: #999999;
					font-size: $uni-font-size-12;
					margin: 0 auto $margin-width;
				}
			}
		}
	}
</style>
